package com.projeto.persistence;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the shipment_detail database table.
 * 
 */
@Entity
@Table(name="shipment_detail")
public class ShipmentDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private int quantity;

	private String type;

	@Column(name="VOL_HEIGHT")
	private float volHeight;

	@Column(name="VOL_LENGHT")
	private float volLenght;

	@Column(name="VOL_WIDTH")
	private float volWidth;

	private float weight;

	//bi-directional many-to-one association to Shipment
    @ManyToOne
	private Shipment shipment;

    public ShipmentDetail() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getQuantity() {
		return this.quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public float getVolHeight() {
		return this.volHeight;
	}

	public void setVolHeight(float volHeight) {
		this.volHeight = volHeight;
	}

	public float getVolLenght() {
		return this.volLenght;
	}

	public void setVolLenght(float volLenght) {
		this.volLenght = volLenght;
	}

	public float getVolWidth() {
		return this.volWidth;
	}

	public void setVolWidth(float volWidth) {
		this.volWidth = volWidth;
	}

	public float getWeight() {
		return this.weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public Shipment getShipment() {
		return this.shipment;
	}

	public void setShipment(Shipment shipment) {
		this.shipment = shipment;
	}
	
}